<html>
<head>
<title>Welcome to the Lab Manager</title>
<meta name="layout" content="main" />
<style type="text/css" media="screen">
#nav {
	margin-top: 20px;
	margin-left: 30px;
	width: 228px;
	float: left;
}

.homePagePanel * {
	margin: 0px;
}

.homePagePanel .panelBody ul {
	list-style-type: none;
	margin-bottom: 10px;
}

.homePagePanel .panelBody h1 {
	text-transform: uppercase;
	font-size: 1.1em;
	margin-bottom: 10px;
}

.homePagePanel .panelBody {
	background: url(images/leftnav_midstretch.png) repeat-y top;
	margin: 0px;
	padding: 15px;
}

.homePagePanel .panelBtm {
	background: url(images/leftnav_btm.png) no-repeat top;
	height: 20px;
	margin: 0px;
}

.homePagePanel .panelTop {
	background: url(images/leftnav_top.png) no-repeat top;
	height: 11px;
	margin: 0px;
}

h2 {
	margin-top: 15px;
	margin-bottom: 15px;
	font-size: 1.2em;
}

#pageBody {
	margin-left: 280px;
	margin-right: 20px;
}
</style>
</head>
<body>
	<div id="nav">
		<div class="homePagePanel">
			<div class="panelTop"></div>
			<div class="panelBody">
				<h1>Navigation:</h1>

				<ul>
					<g:if test="${session?.user}">
						<g:if test="${session?.user?.admin}">
							<li><g:link controller="user" action="list">View Users</g:link>
							</li>
							<li><g:link controller="course" action="list">View Courses</g:link>
							</li>
						</g:if>

						<g:if test="${session?.user?.instructor}">
							<li><g:link controller="user" action="list">View Users</g:link>
							</li>
							<li><g:link controller="course" action="list">View Courses</g:link>
							</li>
						</g:if>
						
						<g:if test="${session?.user?.student}">
							<li><g:link controller="user" action="show" id="${session.user.id}">My Profile</g:link>
							</li>
							<li><g:link controller="course" action="list" id="${session.user.id}">My Courses</g:link>
							</li>
						</g:if>
					</g:if>
					<g:else>
						<li><g:link controller="user" action="login">Log In</g:link></li>
						<li><g:link controller="user" action="newstudent">Create Account</g:link></li>
					</g:else>

				</ul>
			</div>
			<div class="panelBtm"></div>
		</div>
	</div>
	<div id="pageBody">
		<h1>Welcome to the Lab Manager</h1>
		<p>Congratulations, you have successfully logged onto the Lab
			Manager, courtesy of Team TBA Technologies. Your current options can
			be found in the navigation bar to your left.</p>

		<div id="controllerList" class="dialog"></div>
	</div>
</body>
</html>
